package com.ylr.blog.common.vo.blog_tag;

import com.ylr.base.common.jsr303.group.Save;
import com.ylr.base.common.jsr303.group.Update;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-06-07 14:25:28
 * className: BlogTagVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
@ToString
public class BlogTagVo {

    /**
     * 标签主键
     */
    @NotNull(message = "主键不能为空", groups = Update.class)
    private Long id;

    /**
     * 标签名字
     */
    @NotBlank(message = "标签名字不能为空", groups = { Save.class, Update.class })
    private String name;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;

}
